//
//  SignalAssistorNavigationViewController.m
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 3/31/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "SignalAssistorNavigationViewController.h"

@interface SignalAssistorNavigationViewController ()

@end

@implementation SignalAssistorNavigationViewController
@synthesize tableViewController=_tableViewController;
@synthesize agencyEntryViewController=_agencyEntryViewController;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
- (void) dealloc
{
    
    [_tableViewController release];
    [_agencyEntryViewController release];
    [super dealloc];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    _tableViewController=[[SignalAssistorMainTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
    _agencyEntryViewController=[[AgencyEntryView alloc]initWithNibName: @"AgencyEntryView"bundle:nil] ;
    [self pushViewController:_agencyEntryViewController animated:NO];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
    self.tableViewController=nil;
    self.agencyEntryViewController=nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
